import Ember from 'ember';
import config from 'game-front/config/environment';
import RSVP from 'rsvp';

export default Ember.Route.extend({
  model() {
    var userInfo = this.modelFor("application");
    return RSVP.hash({
      userInfo:userInfo,
      addresses: $.getJSON(config.apiBase + "addresses", {userId: userInfo.userId, page:1, size:100})
    });
  },
  beforeModel: function(posts, transition) {
    Ember.run.scheduleOnce('afterRender', this, function() {
      $(".user-background").height(document.body.scrollHeight);
    });
  },actions:{
    nohover() {
      $(".shade").css({"display":"none"});
      $(".div-shade").css({"display":"none"});
    },
    delete(address) {


    }
  }
});
